package ord_list;
/* lists sorted in ascending order w.r.t. the natural order 
 * defined on their elements neither repeated, nor null 
 * elements are allowed */

public interface OrderedList<E extends Comparable<E>> 
	extends List<E>, Comparable<OrderedList<E>> {
	
	/* inserts the specified element in this list, 
	 * respecting the natural order defined on the elements */
	boolean add(E e);
	
	/* inserts all of the elements returned by the 
	 * specified iterator into this list, respecting 
	 * the natural order defined on the elements */
	boolean addAll(Iterable<E> o1);
	
}